package com.bysj.entity;

public class User {
    private int id;
    private String nickname;
    private String avatarurl;
    private String openid;

    public User() {
    }

    public User(int id, String nickname, String avatarurl,String openid) {
        this.id = id;
        this.nickname = nickname;
        this.avatarurl = avatarurl;
        this.openid = openid;
    }

    public int getId() {
        return id;
    }


    public void setId(int id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatarurl() {
        return avatarurl;
    }

    public void setAvatarurl(String avatarurl) {
        this.avatarurl = avatarurl;
    }
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", nickname='" + nickname + '\'' +
                ", avatarurl='" + avatarurl + '\'' +
                ", openid='" + openid + '\'' +
                '}';
    }
}

